 /**
  * Author: Todd Kerpelman
  * Date: 6/14/12
  * Time: 3:52 PM
  *
  * Copyright 2012 Google Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  */

package net.kerp.hangoutSpace.Events {
import net.kerp.hangoutSpace.HangoutParticipant;

import flash.events.Event;

public class HangoutEvent extends Event{

  public static const PARTICIPANT_ADDED:String = "ParticipantAdded";
  public static const PARTICIPANT_REMOVED:String = "ParticipantRemoved";

  private var _person:HangoutParticipant;

  public function HangoutEvent(type:String, person:HangoutParticipant, bubbles:Boolean=false, cancelable:Boolean=false):void
  {
    _person = person;
    //we call the super class Event
    super(type, bubbles, cancelable);
  }

  public override function clone():Event{
      return new HangoutEvent(type, this._person, bubbles, cancelable);
  }

  public function get person():HangoutParticipant {
    return _person;
  }
}
}
